import time
import enum

def get_time_len(len: int = None):
    if len:
        r = len - 10
        t = time.time()
        if r == 0:
            return int(t)
        elif r > 0:
            for i in range(r):
                t = t * 10
            return int(t)
        elif r < 0:
            for i in range(-r):
                t = t / 10
            return int(t)
    else:
        return float(time.time())
class DateFormat(enum.Enum):
    YMD = "%Y%m%d"
    YMD_CN = "%Y年%m月%d日"
    YMD_HMS = "%Y%m%d %H:%M:%S"
    Y_M_D = "%Y-%m-%d"
    Y_M_D_HMS = "%Y-%m-%d %H:%M:%S"
    a_b_d_Y_M_D_HMS = "%a %b %d %Y %H:%M:%S GMT%z (%Z)"
